package com.hxzy.bean;

/**
 * 性别的枚举
 * @author nick
 */
public enum GenderEnum {
    //调用枚举的构造函数
    MALE(1, "男"),
    FEMALE(2, "女"),
    OTHER(3,"其他");

    //性别的值
    private int gender;

    //值对应的描述
    private String desc;

    GenderEnum(int gender, String desc) {
        this.gender = gender;
        this.desc = desc;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }}
